package com.wyp168.servicecms.service;

import com.wyp168.servicecms.entity.CrmBanner;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

/**
 * <p>
 * 首页banner表 服务类
 * </p>
 *
 * @author wyp168
 * @since 2022-05-17
 */
public interface CrmBannerService extends IService<CrmBanner> {

    /**
     * 查询所有banner
     * @return
     */
    @Cacheable(value = "banner", key = "'selectIndexList'")
    List<CrmBanner> selectAllBanner();
}
